<?php

namespace App\Http\Controllers\Api\Agent;

use App\Http\Controllers\Controller;
use App\Http\Resources\Agent\AgentResource;
use App\Http\Resources\Agent\AgentSliderCollection;
use App\Http\Resources\Agent\CityCollection;
use App\Http\Resources\Agent\WorkshopResource;
use App\Http\Resources\CommentCollection;
use App\Http\Resources\WorkShopCollection;
use App\Interfaces\agent\AgentInterFace;
use App\Interfaces\MsgInterFace;
use App\model\agent\Agent;
use App\model\agent\AgentSlider;
use App\model\agent\AgentTousu;
use App\model\agent\AgentUser;
use App\model\agent\AgentYuyue;
use App\model\Area;
use App\model\City;
use App\model\Workshop;
use App\model\WorkshopHangye;
use App\model\WorkshopIndustry;
use App\model\WorkshopTag;
use App\Repository\WorkShopRepository;
use http\Env\Response;
use Illuminate\Http\Request;
use Illuminate\Support\Collection;

class MsgController extends Controller
{
    protected $msgInterFace;

    public function __construct(MsgInterFace $msgInterFace)
    {
        $this->msgInterFace=$msgInterFace;
    }
    /**
     * 用户收藏的
     * @param Request $request
     * @return WorkShopCollectionw
     */
    public function monthRanking(Request $request){
        $ranking=$this->msgInterFace->MonthRanking($request);
        return $ranking;
    }
}
